package com.qyhl.shop.shop;

import com.qyhl.webtv.commonlib.entity.shop.ShopAdvSpaceBean;
import com.qyhl.webtv.commonlib.entity.shop.ShopMessageBean;
import com.qyhl.webtv.commonlib.entity.shop.ShopTypeBean;

import java.util.List;

public class ShopHomePresenter implements ShopHomeContract.ShopHomePresenter {
    private ShopHomeContract.ShopHomeView mView;
    private ShopHomeModel mModel;

    public ShopHomePresenter(ShopHomeContract.ShopHomeView mView) {
        this.mView = mView;
        this.mModel = new ShopHomeModel(this);
    }


    @Override
    public void getAdvList() {
        mModel.getAdvList();
    }

    @Override
    public void getShopTypeList() {
        mModel.getShopTypeList();
    }

    @Override
    public void getMessage() {
        mModel.getMessage();
    }

    @Override
    public void setAdvList(List<ShopAdvSpaceBean> beanList) {
        mView.setAdvList(beanList);
    }

    @Override
    public void setShopTypeList(List<ShopTypeBean> beanList) {
        mView.setShopTypeList(beanList);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }

    @Override
    public void setMessage(List<ShopMessageBean> beanList) {
       mView.setMessage(beanList);
    }
}
